#include <stdio.h>
#define SIZE 100
char msg[SIZE];
int main(void)
{
    printf("Enter a message: ");
    char ch;
    int i;
    for (i = 0; i < SIZE && (ch = getchar()) != '\n'; i++)
        msg[i] = ch;
    printf("Reversal is: ");
    for (int j = i; j >= 0; j--)
        printf("%c", msg[j]);
    printf("\n");
    return 0;
}